package com.jerei.plugin.service.impl;

import com.jerei.plugin.dao.IWcmCommonRoleMenuDetailDao;
import com.jerei.plugin.entity.WcmCommonRoleMenuDetail;
import com.jerei.plugin.service.IWcmCommonRoleMenuDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by sunfeihu on 2016/12/7.
 */
@Service
public class WcmCommonRoleMenuDetailServiceImpl implements IWcmCommonRoleMenuDetailService {

    @Autowired
    private IWcmCommonRoleMenuDetailDao iWcmCommonRoleMenuDetailDao;

    @Override
    public WcmCommonRoleMenuDetail find(Long roleId, Long menuDetailId) {
        return iWcmCommonRoleMenuDetailDao.find(roleId, menuDetailId);
    }

    @Override
    public void update(WcmCommonRoleMenuDetail entity) {
        iWcmCommonRoleMenuDetailDao.update(entity);
    }

    @Override
    public List<WcmCommonRoleMenuDetail> find(Long roleId, Long[] menuDetailIds) {
        return iWcmCommonRoleMenuDetailDao.find(roleId, menuDetailIds);
    }
}
